Skip to content

Fix Stake CAP approval flow#134

Open
kviethp wants to merge 1 commit into
capofficial:mainfrom
kviethp:bounty/cap-32-stake-approval-error
Open

Fix Stake CAP approval flow#134
kviethp wants to merge 1 commit into
capofficial:mainfrom
kviethp:bounty/cap-32-stake-approval-error

Conversation

@kviethp
Copy link
Copy Markdown

@kviethp kviethp commented May 12, 2026

Summary

  • switch the Stake CAP modal allowance and approval spender from FundStore to Staking, matching the contract used by depositCAP
  • keep the approval path in a loading state while allowance checks and approval transactions are pending
  • refresh allowance and wallet balance after a successful approval
  • add a regression test for the Stake CAP approval spender and loading behavior

Validation

pm ci

pm test

pm run build (passes with existing Rollup/Svelte warnings)

  • git diff --check

Fixes #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong error message while approving CAP on Stake function

1 participant